package com.jams.goodox.entity;

import com.jams.goodox.net.BaseEntity;

import java.io.Serializable;

/**
 * Created by Jin on 2016/5/23.
 * Description
 */
public class MyDefaultAddress extends BaseEntity {
    /**
     * addressDetail : 华星路99号钱江科技大厦1610
     * areaAddress : 浙江省杭州市西湖区
     * areaId : 16
     * id : 797b1e13-1b0b-11e6-b6cf-00163e005381
     * name : 高靖2号
     * phone : 13475862569
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        private String addressDetail;
        private String areaAddress;
        private String areaId;
        private String id;
        private String name;
        private String phone;

        public static MyDefaultAddress.DataBean parse(Address bean) {
            MyDefaultAddress.DataBean address = new MyDefaultAddress.DataBean();
            if (null != bean) {
                address.setAddressDetail(bean.getAddressDetail());
                address.setAreaAddress(bean.getAreaAddress());
                address.setAreaId(bean.getAreaId());
                address.setId(bean.getId());
                address.setName(bean.getName());
                address.setPhone(bean.getPhone());
            }
            return address;
        }

        public String getAddressDetail() {
            return addressDetail;
        }

        public void setAddressDetail(String addressDetail) {
            this.addressDetail = addressDetail;
        }

        public String getAreaAddress() {
            return areaAddress;
        }

        public void setAreaAddress(String areaAddress) {
            this.areaAddress = areaAddress;
        }

        public String getAreaId() {
            return areaId;
        }

        public void setAreaId(String areaId) {
            this.areaId = areaId;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }
    }
}
